using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace S
{
    public partial class ScreenThumbnailSlider : UserControl
    {
        public ScreenThumbnailSlider()
        {
            InitializeComponent();
            FlowLayoutP flp = new FlowLayoutP();
            this.Controls.Add(flp);
            flp.Dock = DockStyle.Fill;

            Random r = new Random();

            for (int i = 0; i < 15; i++)
            {
                S.Screen screen = new S.Screen("Test Screen " + i.ToString());
                S.ScreenThumbnail screenThumbnail = new ScreenThumbnail(screen);
                flp.Controls.Add(screenThumbnail.Control);

                //Panel p = new Panel();
                //p.BackColor = Color.FromArgb(r.Next(1, 255),r.Next(1, 255), r.Next(1, 255)) ;
                //p.Size = new Size(70, 20);
                //flp.Controls.Add(p);
            }
        }
    }
}
